# coding:utf-8

name = 'dewei'
new_name = name[::-1]
print(new_name) # iewed

result_find = new_name.find('iew')
print(result_find)  # 0

result_find = new_name.find('wei')
print(result_find)  # -1 找不到返回-1

result_index = new_name.index('wei')
print(result_index)  # ValueError: substring not found
